#ifndef  __INCLUDES_H
#define  __INCLUDES_H

#include <stdint.h>
#include "gd32l23x.h"
#include "systick.h"
#include <stdio.h>
#include "main.h"
#include "led.h"
#include "usart.h"
#include <stdint.h>
#include "bootloader.h"
// #include "rs485_app.h"
#include "iap_handle.h"

#define FLASH_BASE_ADDR		FLASH_BASE
#define FLASH_PAGE_SIZE		(0x800) //2K
//#define USER_APP_ADDR		(0x08019000)
#define APP_PAGE_NUMBER     28

typedef struct
{
    uint32_t gpio_periph;
    uint32_t pin;
}gpio_pair_t;

typedef int32_t  s32;
typedef int16_t s16;
typedef int8_t  s8;

typedef uint32_t  u32;
typedef uint16_t u16;
typedef uint8_t  u8;

void My_IncTick(void);
uint32_t My_GetTick(void);




#endif

